package fhp.hlhj.giantfold.module

import com.lzy.okgo.model.HttpParams
import com.lzy.okgo.model.Response
import fhp.hlhj.giantfold.javaBean.JDBean
import fhp.hlhj.giantfold.network.UrlApis
import fhp.hlhj.giantfold.utils.LogUtil
import fhp.hlhj.giantfold.utils.MyUtils

/**
 * author: FHP
 * data: on 2018\1\29 0029 16:20
 * E-Mail: 103945089@qq.com
 */
class JdListModule {
    interface onJdListListener{
        fun onOrdersListener(rep: Response<String>)
    }
    fun getJdList(params: HttpParams,listener: onJdListListener){
        UrlApis.jdList(params)
                ?.subscribe({
                    data->
                    listener.onOrdersListener(data)
                },{
                    erro->
                    erro.printStackTrace()
                })

    }
}